<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>成语答题 - 微信小程序原型</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }
        .iphone-frame {
            width: 375px;
            height: 667px;
            border-radius: 40px;
            border: 10px solid #111;
            overflow: hidden;
            position: relative;
            margin: 20px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }
        .gradient-bg {
            background-image: linear-gradient(135deg, #67b3ff 0%, #ffffff 100%);
        }
        .btn-primary {
            background-image: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
        }
        .btn-task {
            background-image: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
        }
        .nav-icon.active {
            color: #3b82f6;
        }
        .option-box {
            border: 1px solid #f87171;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .circle-button {
            width: 80px;
            height: 80px;
            border-radius: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .tab-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
        }
        .screen {
            margin-bottom: 60px;
        }
    </style>
</head>
<body class="bg-gray-100 p-4">
    <div class="container mx-auto">
        <h1 class="text-2xl font-bold text-center mb-6">成语答题微信小程序 - UI原型</h1>
        
        <div class="tab-container">
            <!-- 页面1: 主页 -->
            <div class="screen">
                <h2 class="text-xl font-semibold mb-2 text-center">页面1: 主页</h2>
                <div class="iphone-frame gradient-bg">
                    <!-- 顶部用户信息 -->
                    <div class="flex items-center p-6">
                        <div class="w-12 h-12 rounded-full overflow-hidden bg-white border-2 border-blue-300">
                            <img src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?ixlib=rb-1.2.1&auto=format&fit=crop&w=100&h=100&q=80" alt="用户头像" class="w-full h-full object-cover">
                        </div>
                        <span class="ml-3 text-lg font-medium text-gray-800">王小明</span>
                        <div class="ml-auto">
                            <button class="bg-blue-500 text-white rounded-full px-4 py-2 text-sm font-medium shadow-md">
                                <i class="fas fa-tasks mr-1"></i> 任务
                            </button>
                        </div>
                    </div>
                    
                    <!-- 中间数据统计 -->
                    <div class="mx-6 bg-white rounded-xl shadow-md p-5 mb-6">
                        <div class="flex justify-between mb-4">
                            <div class="text-center">
                                <p class="text-gray-500 text-sm">答题卡</p>
                                <p class="text-2xl font-bold text-blue-600">15</p>
                            </div>
                            <div class="text-center">
                                <p class="text-gray-500 text-sm">积分</p>
                                <p class="text-2xl font-bold text-blue-600">230</p>
                            </div>
                        </div>
                        <div class="bg-blue-50 rounded-lg p-3 text-center text-sm">
                            <p class="text-gray-600">已邀请 <span class="text-blue-600 font-medium">3</span> 人，获得 <span class="text-blue-600 font-medium">6</span> 张答题卡</p>
                        </div>
                        <button class="w-full mt-4 bg-blue-500 text-white rounded-lg py-3 font-medium shadow-md">
                            <i class="fas fa-plus-circle mr-2"></i> 获取答题卡
                        </button>
                    </div>
                    
                    <!-- 开始答题按钮 -->
                    <div class="flex justify-center mb-20">
                        <button class="circle-button btn-primary text-white shadow-lg">
                            <div class="text-center">
                                <i class="fas fa-play text-xl mb-1"></i>
                                <p class="text-sm">开始答题</p>
                            </div>
                        </button>
                    </div>
                    
                    <!-- 底部导航 -->
                    <div class="absolute bottom-0 left-0 right-0 bg-white border-t border-gray-200 flex justify-around px-2 py-3">
                        <div class="text-center">
                            <i class="fas fa-home text-xl nav-icon active"></i>
                            <p class="text-xs mt-1 text-blue-600">主页</p>
                        </div>
                        <div class="text-center">
                            <i class="fas fa-tasks text-xl nav-icon text-gray-500"></i>
                            <p class="text-xs mt-1 text-gray-500">任务</p>
                        </div>
                        <div class="text-center">
                            <i class="fas fa-book-open text-xl nav-icon text-gray-500"></i>
                            <p class="text-xs mt-1 text-gray-500">答题</p>
                        </div>
                        <div class="text-center">
                            <i class="fas fa-calendar-check text-xl nav-icon text-gray-500"></i>
                            <p class="text-xs mt-1 text-gray-500">签到</p>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 页面2: 任务页面 -->
            <div class="screen">
                <h2 class="text-xl font-semibold mb-2 text-center">页面2: 任务页面</h2>
                <div class="iphone-frame gradient-bg">
                    <!-- 顶部标题 -->
                    <div class="pt-12 pb-6 text-center">
                        <h2 class="text-xl font-bold text-gray-800">每日任务</h2>
                        <p class="text-sm text-gray-600 mt-1">完成任务获取更多答题卡</p>
                    </div>
                    
                    <!-- 每日任务 -->
                    <div class="mx-6 mb-6">
                        <div class="bg-white rounded-xl shadow-md p-4 mb-4">
                            <div class="flex justify-between items-center">
                                <div>
                                    <h3 class="font-medium">每日签到</h3>
                                    <p class="text-xs text-gray-500 mt-1">每日签到可获得1张答题卡</p>
                                </div>
                                <button class="bg-blue-500 text-white rounded-lg px-4 py-2 text-sm">
                                    去签到
                                </button>
                            </div>
                        </div>
                        
                        <div class="bg-white rounded-xl shadow-md p-4 mb-4">
                            <div class="flex justify-between items-center">
                                <div>
                                    <h3 class="font-medium">观看广告</h3>
                                    <p class="text-xs text-gray-500 mt-1">今日已完成 2/5 次</p>
                                </div>
                                <button class="bg-blue-500 text-white rounded-lg px-4 py-2 text-sm">
                                    去观看
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 可选任务 -->
                    <div class="mx-6">
                        <h3 class="text-lg font-semibold mb-3">可选任务</h3>
                        
                        <div class="bg-white rounded-xl shadow-md p-4 mb-4">
                            <div class="flex justify-between items-center">
                                <div>
                                    <h3 class="font-medium">邀请3位好友</h3>
                                    <p class="text-xs text-gray-500 mt-1">进度: <span class="text-blue-600">2/3</span></p>
                                </div>
                                <div class="text-right">
                                    <p class="text-xs text-orange-500">奖励: 6张答题卡</p>
                                    <button class="bg-orange-500 text-white rounded-lg px-4 py-2 text-sm mt-1">
                                        去邀请
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <div class="bg-white rounded-xl shadow-md p-4 mb-4">
                            <div class="flex justify-between items-center">
                                <div>
                                    <h3 class="font-medium">邀请5位好友</h3>
                                    <p class="text-xs text-gray-500 mt-1">进度: <span class="text-blue-600">2/5</span></p>
                                </div>
                                <div class="text-right">
                                    <p class="text-xs text-orange-500">奖励: 15张答题卡</p>
                                    <button class="bg-orange-500 text-white rounded-lg px-4 py-2 text-sm mt-1">
                                        去邀请
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 底部导航 -->
                    <div class="absolute bottom-0 left-0 right-0 bg-white border-t border-gray-200 flex justify-around px-2 py-3">
                        <div class="text-center">
                            <i class="fas fa-home text-xl nav-icon text-gray-500"></i>
                            <p class="text-xs mt-1 text-gray-500">主页</p>
                        </div>
                        <div class="text-center">
                            <i class="fas fa-tasks text-xl nav-icon active"></i>
                            <p class="text-xs mt-1 text-blue-600">任务</p>
                        </div>
                        <div class="text-center">
                            <i class="fas fa-book-open text-xl nav-icon text-gray-500"></i>
                            <p class="text-xs mt-1 text-gray-500">答题</p>
                        </div>
                        <div class="text-center">
                            <i class="fas fa-calendar-check text-xl nav-icon text-gray-500"></i>
                            <p class="text-xs mt-1 text-gray-500">签到</p>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 页面3: 成语答题页面 -->
            <div class="screen">
                <h2 class="text-xl font-semibold mb-2 text-center">页面3: 成语答题页面</h2>
                <div class="iphone-frame gradient-bg">
                    <!-- 顶部按钮 -->
                    <div class="flex justify-end p-6">
                        <button class="bg-blue-500 text-white rounded-full px-4 py-2 text-sm font-medium shadow-md">
                            <i class="fas fa-user-friends mr-1"></i> 求助好友
                        </button>
                    </div>
                    
                    <!-- 成语题目区 -->
                    <div class="flex flex-col items-center justify-center" style="height: 400px;">
                        <div class="text-3xl font-bold mb-16 text-gray-800 border-2 border-red-200 border-dashed p-8 rounded-md bg-red-50">
                            设 身 处 ?
                        </div>
                        
                        <div class="flex justify-center space-x-4">
                            <div class="option-box bg-white font-bold text-xl">难</div>
                            <div class="option-box bg-white font-bold text-xl">非</div>
                            <div class="option-box bg-white font-bold text-xl">地</div>
                            <div class="option-box bg-white font-bold text-xl">日</div>
                        </div>
                    </div>
                    
                    <!-- 底部状态栏 -->
                    <div class="absolute bottom-16 left-0 right-0 flex justify-around px-6 py-2 bg-white bg-opacity-80">
                        <div class="flex items-center">
                            <i class="fas fa-ticket-alt text-orange-500 mr-2"></i>
                            <span>答题卡: <strong>14</strong></span>
                        </div>
                        <div class="flex items-center">
                            <i class="fas fa-star text-yellow-500 mr-2"></i>
                            <span>积分: <strong>235</strong></span>
                        </div>
                    </div>
                    
                    <!-- 底部导航 -->
                    <div class="absolute bottom-0 left-0 right-0 bg-white border-t border-gray-200 flex justify-around px-2 py-3">
                        <div class="text-center">
                            <i class="fas fa-home text-xl nav-icon text-gray-500"></i>
                            <p class="text-xs mt-1 text-gray-500">主页</p>
                        </div>
                        <div class="text-center">
                            <i class="fas fa-tasks text-xl nav-icon text-gray-500"></i>
                            <p class="text-xs mt-1 text-gray-500">任务</p>
                        </div>
                        <div class="text-center">
                            <i class="fas fa-book-open text-xl nav-icon active"></i>
                            <p class="text-xs mt-1 text-blue-600">答题</p>
                        </div>
                        <div class="text-center">
                            <i class="fas fa-calendar-check text-xl nav-icon text-gray-500"></i>
                            <p class="text-xs mt-1 text-gray-500">签到</p>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 页面4: 签到页面 -->
            <div class="screen">
                <h2 class="text-xl font-semibold mb-2 text-center">页面4: 签到页面</h2>
                <div class="iphone-frame gradient-bg">
                    <!-- 顶部插图区 -->
                    <div class="flex justify-center pt-10 pb-6">
                        <div class="w-48 h-48 flex items-center justify-center">
                            <img src="https://images.unsplash.com/photo-1499750310107-5fef28a66643?ixlib=rb-1.2.1&auto=format&fit=crop&w=300&h=300&q=80" alt="签到插图" class="w-full object-cover rounded-lg shadow-md">
                            <div class="absolute text-white font-bold text-xl bg-blue-500 bg-opacity-70 px-4 py-2 rounded-lg">欢迎签到</div>
                        </div>
                    </div>
                    
                    <!-- 签到按钮 -->
                    <div class="flex justify-center mb-8">
                        <button class="bg-blue-500 text-white rounded-lg px-12 py-4 text-lg font-bold shadow-lg">
                            <i class="fas fa-calendar-check mr-2"></i> 立即签到
                        </button>
                    </div>
                    
                    <!-- 签到周期 -->
                    <div class="mx-6 bg-white rounded-xl shadow-md p-4">
                        <h3 class="text-center font-medium mb-4">连续签到奖励</h3>
                        
                        <div class="grid grid-cols-3 gap-3 mb-3">
                            <div class="border rounded-lg p-2 text-center bg-blue-50 border-blue-300">
                                <p class="text-sm text-gray-700">第1天</p>
                                <p class="text-xs text-blue-600 mt-1">1张答题卡</p>
                                <i class="fas fa-check-circle text-blue-500 mt-1"></i>
                            </div>
                            <div class="border rounded-lg p-2 text-center bg-gray-50">
                                <p class="text-sm text-gray-700">第2天</p>
                                <p class="text-xs text-blue-600 mt-1">2张答题卡</p>
                            </div>
                            <div class="border rounded-lg p-2 text-center bg-gray-50">
                                <p class="text-sm text-gray-700">第3天</p>
                                <p class="text-xs text-blue-600 mt-1">2张答题卡</p>
                            </div>
                        </div>
                        
                        <div class="grid grid-cols-3 gap-3 mb-3">
                            <div class="border rounded-lg p-2 text-center bg-gray-50">
                                <p class="text-sm text-gray-700">第4天</p>
                                <p class="text-xs text-blue-600 mt-1">3张答题卡</p>
                            </div>
                            <div class="border rounded-lg p-2 text-center bg-gray-50">
                                <p class="text-sm text-gray-700">第5天</p>
                                <p class="text-xs text-blue-600 mt-1">3张答题卡</p>
                            </div>
                            <div class="border rounded-lg p-2 text-center bg-gray-50">
                                <p class="text-sm text-gray-700">第6天</p>
                                <p class="text-xs text-blue-600 mt-1">4张答题卡</p>
                            </div>
                        </div>
                        
                        <div class="grid grid-cols-3 gap-3">
                            <div class="col-start-2 border rounded-lg p-2 text-center bg-yellow-50 border-yellow-300">
                                <p class="text-sm font-bold text-yellow-700">第7天</p>
                                <p class="text-xs font-medium text-yellow-600 mt-1">10张答题卡</p>
                                <i class="fas fa-gift text-yellow-500 mt-1"></i>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 底部导航 -->
                    <div class="absolute bottom-0 left-0 right-0 bg-white border-t border-gray-200 flex justify-around px-2 py-3">
                        <div class="text-center">
                            <i class="fas fa-home text-xl nav-icon text-gray-500"></i>
                            <p class="text-xs mt-1 text-gray-500">主页</p>
                        </div>
                        <div class="text-center">
                            <i class="fas fa-tasks text-xl nav-icon text-gray-500"></i>
                            <p class="text-xs mt-1 text-gray-500">任务</p>
                        </div>
                        <div class="text-center">
                            <i class="fas fa-book-open text-xl nav-icon text-gray-500"></i>
                            <p class="text-xs mt-1 text-gray-500">答题</p>
                        </div>
                        <div class="text-center">
                            <i class="fas fa-calendar-check text-xl nav-icon active"></i>
                            <p class="text-xs mt-1 text-blue-600">签到</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
